import { createApp } from "vue";
import { createPinia } from "pinia";
import router from "@/router";
import App from "@/App.vue";
import "element-plus/es/components/message/style/css";
import "element-plus/es/components/message-box/style/css";
import "@/assets/styles/index.less";
import { globalComponent } from "@/plugins";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
// 暗黑颜色
import "element-plus/theme-chalk/dark/css-vars.css";

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
const app = createApp(App);
app.use(pinia).use(router).use(globalComponent);
app.mount("#app");
